home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Your Apple Games Gallery 1
/
Your Apple Games Gallery (Side A)(MicroSPARC, Inc.)(1988).do
/
NIBBLER.bas
< prev
next >
Wrap
BASIC Source File
|
2021-12-11
|
2KB
|
55 lines
10 REM **********************
11 REM * N I B B L E R *
12 REM * BY BRENT IVERSON *
13 REM * COPYRIGHT (C) 1983 *
14 REM * BY MICROSPARC, INC *
15 REM * CONCORD, MA. 01742 *
16 REM **********************
20 TEXT : HOME : INVERSE
30 VTAB 5: HTAB 13: PRINT ":" SPC( 13)":": HTAB 13: PRINT " N I B B L E R ": HTAB 13: PRINT ":" SPC( 13)":"
40 NORMAL : VTAB 12: PRINT "** COPYRIGHT 1983 BY MICROSPARC, INC. **": VTAB 9: HTAB 12: PRINT "BY: BRENT IVERSON"
49 :
50 REM ---LOAD MACHINE LANGUAGE
51 :
60 VTAB 20: HTAB 11: PRINT "LOADING OBJECT CODE"
70 PRINT CHR$(4)"BLOAD NIBBLER.OBJ"
79 :
80 REM ---LOAD SHAPE TABLE
81 :
90 VTAB 20: HTAB 1: PRINT SPC( 12)"LOADING SHAPES";: CALL -868
100 PRINT : PRINT CHR$(4)"BLOAD NIBBLER.SHAPES,A$1500"
109 :
110 REM ---SET TABLE POINTERS
111 :
120 POKE 232,0: POKE 233,21: SCALE= 1
129 :
130 REM ---WAIT FOR KEYPRESS
131 :
140 VTAB 20: HTAB 8: PRINT "<PRESS ANY KEY TO BEGIN>"
150 POKE -16368,0
160 WAIT -16384,128
169 :
170 REM ---CLEAR PAGE 2
171 :
180 HGR2
189 :
190 REM ---PLAY GAME
191 :
200 CALL 24576
209 :
210 REM ---FLIP BETWEEN TEXT
220 REM AND HI-RES WHILE
230 REM WAITING FOR ANOTHER
240 REM KEYPRESS
241 :
242 SC = 0
243 FOR X = 24597 TO 24606:SC = SC *10 + PEEK(X): NEXT
244 IF SC >HS THEN HS = SC
245 VTAB 17: HTAB 7: PRINT "SCORE: ";SC;" HIGH SCORE: ";HS;: CALL -868
250 VTAB 15: HTAB 12: PRINT "G A M E O V E R"
260 FOR I = 1 TO 2000: NEXT : POKE -16368,0
270 POKE -16304,0: POKE -16297,0
280 FOR I = 1 TO 250: IF PEEK( -16384) >127 THEN 180
290 NEXT : TEXT
300 FOR I = 1 TO 250: IF PEEK( -16384) >127 THEN 180
310 NEXT : GOTO 270